[![](https://img.shields.io/pypi/v/pytorch_probing?style=for-the-badge)](https://pypi.org/project/pytorch_probing) [![](https://img.shields.io/pypi/l/pytorch_probing?style=for-the-badge)](https://github.com/H-IAAC/pytorch-probing/blob/main/LICENSE) [![](https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/H-IAAC/pytorch-probing) [![](https://img.shields.io/badge/-Documentation-fe9c22?style=for-the-badge&link=https%3A%2F%2Fh-iaac.github.io%2Fpytorch-probing%2F)](https://h-iaac.github.io/pytorch-probing) [![](https://img.shields.io/badge/DOI-10.5281/zenodo.13629705-1082c3?style=for-the-badge)](https://doi.org/10.5281/zenodo.13629705) # PyTorch Probing Python module for creating and using probes with PyTorch modules. This project was developed as part of the Cognitive Architectures research line from the Hub for Artificial Intelligence and Cognitive Architectures (H.IAAC) of the State University of Campinas (UNICAMP). See more projects from the group [here](https://github.com/brgsil/RepoOrganizer). [![](https://img.shields.io/badge/-H.IAAC-eb901a?style=for-the-badge&labelColor=black)](https://hiaac.unicamp.br/) [![](https://img.shields.io/badge/-Arq.Cog-black?style=for-the-badge&labelColor=white&logo=data:image/svg%2bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4gPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1Ni4wMDQiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1Ni4wMDQgNTYiPjxwYXRoIGlkPSJhcnFjb2ctMiIgZD0iTTk1NS43NzQsMjc0LjJhNi41Nyw2LjU3LDAsMCwxLTYuNTItNmwtLjA5MS0xLjE0NS04LjEtMi41LS42ODksMS4xMjNhNi41NCw2LjU0LDAsMCwxLTExLjEzNi4wMjEsNi41Niw2LjU2LDAsMCwxLDEuMzY4LTguNDQxbC44LS42NjUtMi4xNS05LjQ5MS0xLjIxNy0uMTJhNi42NTUsNi42NTUsMCwwLDEtMi41OS0uODIyLD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zLTkuMjIyLTEuMzM2LS4wMThhNi41MjEsNi41MjEsMCwwLDEtNi40MjktNi4xbC0uMDc3LTEuMTY1LTguMDc0LTIuNS0uNjg0LDEuMTQ4YTYuNTM0LDYuNTM0LDAsMCwxLTguOTY2LDIuMjY0bC0xLjA5MS0uNjUyLTYuNjE3LDYuMTMxLjc1MSwxLjE5MmE2LjUxOCw2LjUxOCwwLDAsMS0yLjMsOS4xNjRsLTEuMS42MTksMi4wNiw5LjA4NywxLjQ1MS0uMUM5MzQuNDc1LDI1NS43NSw5MzQuNjI2LDI1NS43NDQsOTM0Ljc3OSwyNTUuNzQ0Wm0zNi44NDQtOC43NjJhNC45NzcsNC45NzcsMCwwLDAtNC4zMTYsMi41LDQuODg5LDQuODg5LDAsMCwwLS40NjQsMy43NjIsNC45NDgsNC45NDgsMCwxLDAsNC43NzktNi4yNjZaTTkyOC43LDIzNS41MzNhNC45NzksNC45NzksMCwwLDAtNC4zMTcsMi41LDQuOTQ4LDQuOTQ4LDAsMCwwLDQuMjkxLDcuMzkxLDQuOTc1LDQuOTc1LDAsMCwwLDQuMzE2LTIuNSw0Ljg4Miw0Ljg4MiwwLDAsMCwuNDY0LTMuNzYxLDQuOTQsNC45NCwwLDAsMC00Ljc1NC0zLjYzWm0zNi43NzYtMTAuMzQ2YTQuOTUsNC45NSwwLDEsMCw0LjIyMiwyLjM0NUE0LjkyMyw0LjkyMywwLDAsMCw5NjUuNDc5LDIyNS4xODdabS0yMC45NTItNS40MTVhNC45NTEsNC45NTEsMCwxLDAsNC45NTEsNC45NTFBNC45NTcsNC45NTcsMCwwLDAsOTQ0LjUyNywyMTkuNzcyWiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTkyMi4xNDMgLTIxOC4yKSIgZmlsbD0iIzgzMDNmZiI+PC9wYXRoPjwvc3ZnPiA=)](https://github.com/brgsil/RepoOrganizer) ## Repository Structure - src: pytorch_probing source code - docs: documentation files - examples: examples of usage (see the [documentation](https://h-iaac.github.io/pytorch-probing/)) - test: test codes ## Requirements - Python - Other dependencies are automatically installed with pip ## Installation / Usage **Installation** - Installing using pip: ```bash pip install --upgrade pip pip install pytorch_probing ``` - For installing from the repository: ```bash git clone https://github.com/H-IAAC/pytorch_probing cd pytorch_probing pip install --upgrade pip pip install . ``` **Usage** See the [documentation](https://h-iaac.github.io/pytorch-probing/) for usage and [examples](https://h-iaac.github.io/pytorch-probing/_build/html/Examples.html). ## Citation ```bibtex @software{pytorch_probing, author = {Cardoso do Nascimento, Elton and Dornhofer Paro Costa, Paula}, doi = {10.5281/zenodo.13629705}, title = {PyTorch Probing}, url = {hhttps://github.com/H-IAAC/pytorch-probing} } ``` ## Authors - (2024-) [EltonCN](https://github.com/EltonCN) : M. Eng. student, FEEC-Unicamp - (Advisor, 2024-) Paula Dornhofer Paro Costa: Professor, FEEC-UNICAMP ## Acknowledgements Project supported by the brazilian Ministry of Science, Technology and Innovations, with resources from Law No. 8,248, of October 23, 1991 ## Licence ``` Copyright 2024 H.IAAC Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/lgpl-3.0.html Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```